package com.bw.service;

import com.bw.dao.GmallDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GmallServiceImp implements GmallService{
    //注入持久层
    @Autowired
    GmallDao gmallDao;

    //总成交的 数字翻牌器展示
    @Override
    public List<Map> findTotal(String nowDate) {
        return gmallDao.findTotal(nowDate);
    }

    //按照省份展示总成交额指标
    @Override
    public List<Map> findPro(String nowDate) {
        return gmallDao.findPro(nowDate);
    }

    //按照第二大类交易额展示饼状图
    @Override
    public List<Map> findCato(String nowDate) {
        return gmallDao.findCato(nowDate);
    }
}
